<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt" %>

<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>添加货品页面</title>
</head>
<body>
<h2>当前用户： ${user.uname}</h2>

<form action="sec/MyWarehouseServlet" method="post">
仓库： <select name="ww">

	<c:forEach items="${ws}" var="w">
		<option value="${w.id}">${w.addr}</option>
	</c:forEach>
	</select>
	</br></br>
货品名： <input type="text" name="pname" value="${pname}">${err_pname}</br></br>
价格： <input type="number" min="0" step="0.01" max="100000" name="pprice" value="${pprice}">${err_pprice}</br></br>
数量： <input type="number" min="0" step="1"  max="100000" name="pcount" value="${pcount}">${err_pcount}</br></br>
生产日期： <input type="date" name="pdate" value="${pdate}">${err_pdate}</br></br>
<input type="submit" value="添加">
</form>

</body>
</html>